package com.findFish.water.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 养殖场地理信息对象 farm_location
 * 
 * @author admin
 * @date 2025-04-01
 */
public class FarmLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 养殖场地地理ID */
    private Long id;

    /** 养殖场名称 */
    @Excel(name = "养殖场名称")
    private String farmName;

    /** 纬度 */
    @Excel(name = "纬度")
    private Long latitude;

    /** 经度 */
    @Excel(name = "经度")
    private Long longitude;

    /** 养殖场面积 (m²) */
    @Excel(name = "养殖场面积 (m²)")
    private Long areaSize;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatedBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFarmName(String farmName) 
    {
        this.farmName = farmName;
    }

    public String getFarmName() 
    {
        return farmName;
    }

    public void setLatitude(Long latitude) 
    {
        this.latitude = latitude;
    }

    public Long getLatitude() 
    {
        return latitude;
    }

    public void setLongitude(Long longitude) 
    {
        this.longitude = longitude;
    }

    public Long getLongitude() 
    {
        return longitude;
    }

    public void setAreaSize(Long areaSize) 
    {
        this.areaSize = areaSize;
    }

    public Long getAreaSize() 
    {
        return areaSize;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("farmName", getFarmName())
            .append("latitude", getLatitude())
            .append("longitude", getLongitude())
            .append("areaSize", getAreaSize())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .toString();
    }
}
